package com.woniuxy.light_smart.service.imp;

import com.woniuxy.light_smart.entity.FacilityName;
import com.woniuxy.light_smart.mapper.FacilityMapper;
import com.woniuxy.light_smart.mapper.FacilityNameMapper;
import com.woniuxy.light_smart.service.FacilityNameService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class FacilityNameServiceImpl implements FacilityNameService {
    @Resource
    private FacilityNameMapper facilityNameMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return facilityNameMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(FacilityName record) {
        return facilityNameMapper.insertSelective(record);
    }

    @Override
    public FacilityName selectByPrimaryKey(Long id) {
        return facilityNameMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(FacilityName record) {
        return facilityNameMapper.updateByPrimaryKeySelective(record);
    }
}
